import pytest
import os
from log import log_set
from mail import mail_send

if __name__ == '__main__':
    log_set()
    pytest.main(['-s','testadd.py','--alluredir=areport','--clean-alluredir'])
    os.system("allure generate areport -o wdbaogao --clean")
    mail_send(['weidudiansanglog.txt','wdbaogao/index.html'])
